﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace GpSpotMe.Ign.TileModel
{
    public class Tile
    {
        int coord_i;
        int coord_j;
        int zone;
        Bitmap bmp;
        bool valid;

        public Tile(int i, int j, Bitmap bmp)
        {
            this.coord_i = i;
            this.coord_j = j;
            this.zone = 30;
            this.bmp = bmp;
            valid = false;
        }

        public Tile(int i, int j, Bitmap bmp, bool isValid)
        {
            this.coord_i = i;
            this.coord_j = j;
            this.bmp = bmp;
            this.valid = isValid;
        }

        public Tile(int i, int j, int z, Bitmap bmp, bool isValid)
        {
            this.coord_i = i;
            this.coord_j = j;
            this.zone = z;
            this.bmp = bmp;
            this.valid = isValid;
        }

        public int Coord_I
        {
            get { return this.coord_i; }
        }
        
        public int Coord_J
        {
            get { return this.coord_j; }
        }

        public int Zone
        {
            get { return this.zone; }
        }

        public Bitmap Bmp
        {
            get { return this.bmp; }
        }
       
        public bool IsValid
        {
            get { return this.valid; }
        }
    }
}
